

//editAgent
import { apiRequest} from "@/utils/HttpRequest";

export async function agentDistributionNav(params:any) {
  return apiRequest<API.BaseResult> ( "permission/agentDistributionNav", {
    method: "POST",
    data: params
  } )
}




export async function agentDistributionList(id: number) {
  //SwaggerResources


  return apiRequest<API.BaseArrayDataResult<number>> (
    "permission/agentDistributionList", {
      method: "GET", params: {id:id}
    } )


}



export async function roleFindByPageList(params?: any) {
  //SwaggerResources


  return apiRequest<API.DataType<API.Agent>> (
    "permission/findByPageList", {
      method: "GET", params: {...params}
    } )


}

//editAgent
export async function editRole(params: API.Category) {
  return apiRequest<API.BaseResult> ( "permission/edit", {
    method: "POST",
    data: params
  } )
}





export async function navDistribution(params:any) {
  return apiRequest<API.BaseResult> ( "permission/roleNavDistributionNav", {
    method: "POST",
    data: params
  } )
}




export async function roleNavDistributionList(id: number) {
  //SwaggerResources


  return apiRequest<API.BaseArrayDataResult<number>> (
    "permission/roleNavDistributionList", {
      method: "GET", params: {id:id}
    } )


}





export async function roleDistributionNav(params:any) {
  return apiRequest<API.BaseResult> ( "permission/roleDistributionNav", {
    method: "POST",
    data: params
  } )
}




export async function roleDistributionList(id: number) {
  //SwaggerResources


  return apiRequest<API.BaseArrayDataResult<number>> (
    "permission/roleDistributionList", {
      method: "GET", params: {id:id}
    } )


}
